package es.esa.integral;

import java.util.StringTokenizer;

/**
 * Created by esalazar on 7/11/13.
 */
public class Observation {
    String rev ;
    String start;
    String end;
    String exposureTime;
    String source;
    String ra;
    String dec;

    String pattern;
    String pi;
    String proposal;
    String obs;
    String notes;

    public Observation(StringTokenizer st) {
        rev = st.nextToken().replaceAll("\"", "");
        start = st.nextToken().replaceAll("\"", "");
        end = st.nextToken().replaceAll("\"", "");
        exposureTime = st.nextToken().replaceAll("\"", "");
        source = st.nextToken().replaceAll("\"", "");
        ra = st.nextToken().replaceAll("\"", "");
        dec = st.nextToken().replaceAll("\"", "");

        pattern = st.nextToken().replaceAll("\"", "");
        pi = st.nextToken().replaceAll("\"", "");
        proposal = st.nextToken().replaceAll("\"", "");
        obs = st.nextToken().replaceAll("\"", "");
        notes = st.nextToken().replaceAll("\"", "");

        start = start.substring(0, start.lastIndexOf("."));
        end = end.substring(0, end.lastIndexOf("."));
    }
}
